<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title></title>
        <!-- AJAX -->
        <script type="text/javascript" src="js/http_request.js"></script>
        <!-- CSS -->
        <link rel="stylesheet" href="css/menu.css" type="text/css" media="screen" />
    </head>
    <body>
        <ul id="nav">
            <?php
            echo $_SESSION['rols'];
            if (isset($_SESSION)) {
                //include('views/menuDefault.php');
                switch ($_SESSION['rols'][0]) {
                    case "usuari" :
                        include ('views/menuRegister.php');
                        break;
                    case "administrador" :
                        include ('views/menuRegister.php');
                        include ('views/menuAdmin.php');
                        break;
                    case "participant" :
                        include ('views/menuRegister.php');
                        include ('views/menuParticipant.php');
                        break;
                }
            } else {
                include('views/menuDefault.php');
            }
            ?>
        </ul>
    </body>
</html>